<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    // ceil  向上取整
    console.log(Math.ceil(1.1));
    console.log(Math.ceil(2.00000001));
    // floor 向下取整
      console.log(Math.floor(1.9));
       console.log(Math.floor(1.1));
      // max 最大值
      console.log(Math.max(1,3,5,7,544));
      // min 最小值
      console.log(Math.min(2,4,56,3,2));
      // 随机数   
      console.log(Math.floor(Math.random()*(10+1)))
      // 生成5-10的随机数
       let rel =Math.floor(Math.random()*(5+1)+5)
       console.log(rel);
       

  </script>
</body>
</html>